print all anagrams of a string in python